// import com.alibaba.druid.sql.ast.SQLExpr;
// import com.alibaba.druid.sql.ast.SQLLimit;
// import com.alibaba.druid.sql.dialect.mysql.visitor.MySqlASTVisitor;

#include "MySqlShowBinLogEventsStatement.h"
#include "../../../../ast/SQLExpr.h"
#include "../../../../ast/SQLLimit.h"
#include "../../visitor/MySqlASTVisitor.h"

void MySqlShowBinLogEventsStatement::accept0(MySqlASTVisitor_ptr visitor)
{
  if (visitor->visit(SharedObject(MySqlShowBinLogEventsStatement)))
  {
    acceptChild(visitor, in);
    acceptChild(visitor, from);
    acceptChild(visitor, limit);
  }
  visitor->endVisit(SharedObject(MySqlShowBinLogEventsStatement));
}

SQLExpr_ptr MySqlShowBinLogEventsStatement::getIn()
{
  return in;
}

void MySqlShowBinLogEventsStatement::setIn(SQLExpr_ptr in)
{
  this->in = in;
}

SQLExpr_ptr MySqlShowBinLogEventsStatement::getFrom()
{
  return from;
}

void MySqlShowBinLogEventsStatement::setFrom(SQLExpr_ptr from)
{
  this->from = from;
}

SQLLimit_ptr MySqlShowBinLogEventsStatement::getLimit()
{
  return limit;
}

void MySqlShowBinLogEventsStatement::setLimit(SQLLimit_ptr limit)
{
  if (limit != nullptr)
  {
    limit->setParent(SharedObject(MySqlShowBinLogEventsStatement));
  }
  this->limit = limit;
}
